package com.xy.breakfast.service;

import com.xy.breakfast.entity.Products;
import com.xy.breakfast.mapper.ProductsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductsService implements ProductsMapper {

    @Autowired
    ProductsMapper productsMapper;
    @Override
    public Products getById(int id) {
        return productsMapper.getById(id);
    }

    @Override
    public void save(Products t) {
        productsMapper.save(t);
    }

    @Override
    public void deleteById(int id) {

    }

    @Override
    public void update(Products t) {

    }

    @Override
    public List<Products> getAll() {
        return null;
    }

    @Override
    public List<Products> getPage(int start, int end) {
        return null;
    }
}
